package OOday01;

/**
 * 汽车类
 */
public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    int kjl;
    String asfk;
    Car(){

    }
    Car(String asfk,int kjl){
        this.kjl = kjl+2;
    }
    Car(String brand,String color,double price,int capacity){
        this.brand=brand;
        this.color=color;
        this.price=price;
        this.capacity=capacity;
    }
    void start (){
        System.out.println("一辆价值"+price+"坐了"+capacity+"人的"+color+brand+"启动了");
    }
    void run (){
        System.out.println("一辆价值"+price+"坐了"+capacity+"人的"+color+brand+"启动了");
    }
    void stop (){
        System.out.println("一辆价值"+price+"坐了"+capacity+"人的"+color+brand+"启动了");
    }




}
